package com.deyuanyun.pic.pipe.controller.vo;

import com.github.pagehelper.Page;

/**
 * 展示层对象基础转换工具类
 *
 * @author huanglw
 * @date
 *
 * History: [修改人][时间][修改描述]
 */
public class BaseVOUtil {

    public static <T, E>void converterPage(Page<T> domainList, Page<E> list){
        list.setPageNum(domainList.getPageNum());
        list.setPageSize(domainList.getPageSize());
        list.setTotal(domainList.getTotal());
        list.setPageSizeZero(domainList.getPageSizeZero());
        list.setReasonable(domainList.getReasonable());
    }
}
